<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title><%= htmlWebpackPlugin.options.plantForm %></title>
</head>
<body>
  <script>
    var proid = "89";//专案id
    var getUrlParams = function (){
      var args = {};
      var query = location.search.substring(1);
      var pairs = query.split("&");
      for(var i = 0;i < pairs.length; i++){
          var pos = pairs[i].indexOf("=");
          if(pos == -1) continue;
          var name = pairs[i].substring(0, pos);
          var value = pairs[i].substring(pos + 1);
          value = decodeURIComponent(value);
          args[name] = value;
      }
      return args;
    }
    var params = getUrlParams();
    proid = params.proid;
    window.localStorage.setItem('solft_proid',proid)
  </script>
<% if(htmlWebpackPlugin.options.plantForm != 'uniapp'){ %>
  <script>
    window.location.replace('./login/#/login');
  </script>
<% }else {%>
  <script>
    window.location.replace('./login/login.html');
  </script>
<% } %>
</body>
</html>